package com.todo.strategy.online.application.service;


import com.todo.strategy.online.application.entity.bo.MemoUserRelationBO;

/**
 * @author azhebuxing
 * @date 2024/11/29 00:32
 * @description
 */
public interface MemoUserRelationService {

    /**
     * 新增备忘录关联信息
     *
     * @param memoUserRelationBO
     * @return
     */
    Boolean insertMemoUserRelation(MemoUserRelationBO memoUserRelationBO);

    /**
     * 更新备忘录关联信息
     *
     * @param memoUserRelationBO
     * @return
     */
    Boolean updateMemoUserRelation(MemoUserRelationBO memoUserRelationBO);

    /**
     * 根据主键Id删除备忘录关联信息
     *
     * @param id
     * @return
     */
    Boolean removeMemoUserRelationById(Long id);

    /**
     * 根据主键查询备忘录关联信息
     *
     * @param id
     * @return
     */
    MemoUserRelationBO queryMemoUserRelationById(Long id);

    /**
     * 根据用户以及计划Id查询备忘录关联信息
     *
     * @param userId
     * @param planId
     * @return
     */
    MemoUserRelationBO queryMemoUserRelationByUserPlanId(Long userId, Long planId);

    /**
     * 根据用户以及计划Id删除备忘录关联信息
     *
     * @param userId
     * @param planId
     * @return
     */
    Boolean removeMemoUserRelationByUserPlanId(Long userId, Long planId);
}
